﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="Web.admin.newsClass.Class" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../../css/style.css" rel="stylesheet" type="text/css" />
    <script src="../../js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../../js/function.js" type="text/javascript"></script>
    <script src="../../js/ajax.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="top_div">
        <div class="top_div_left" >
                <table>
                    <tr>
                        <td ><img alt="" src="../../images/main_hl.gif" /></td>
                        <td ><img alt="" src="../../images/main_hl2.gif" /></td>
                        <td class="topNav"><span>栏目列表</span></td>
                        <td><img alt="" src="../../images/main_hr.gif" /></td>
                    </tr>
                </table>
        </div>
    </div>
    <div class="middle_div">
        <div class="middle_left"></div>
        <div class="middle_middle">
            <div class="navigation"><span>首页&gt;栏目管理&gt;信息栏目&gt;栏目列表</span></div>
             <div class="tools_box">
                <div class="tools_bar">
                    <a href="#"   class="tools_btn"><span><b class="add">添加栏目</b></span></a>
                    <a href="#"  class="tools_btn" onclick="checkAll(this);"><span><b class="checkAll">全选</b></span></a>
                    <asp:LinkButton runat="server" CssClass="tools_btn" ID="btn_Delete" OnClick="btnDelete_Click" OnClientClick="return confirm( '确定要删除这些记录吗？ ');"><span><b class="delete">批量删除</b></span></asp:LinkButton>
                </div>
            </div>
            <div class="content_table">
                <table class="msgtable">
                <asp:Repeater ID="RpClass" runat="server">
                    <HeaderTemplate>
                        <tr>
                            <th>选择</th>
                            <th>编号</th>
                            <th>标题</th>
                            <th>操作</th>
                        </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <td><asp:CheckBox ID="CbChoose" CssClass="checkBox" runat="server" /></td>
                            <td><asp:Label runat="server" Text='<%#Eval("NCId")%>' ID="lb_id"></asp:Label></td>
                            <td><%#Eval("NCTitle")%></td>
                            <td><a href="javascript:;">修改</a>|<a href="SingleDelete.ashx?id=<%#Eval("NCId")%>">删除</a></td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
                </table>
            </div>
        </div>
        <div class="middle_right"></div>
    </div>
      <%--<div class="Con_List" id="Add_item">
        <div class="Con_top">
            <div class="Con_close" onclick="hideDiv('Add_item')">X</div>
        </div>--%>
        <div class="Con_middle">
            <table>
                <tr>
                    <td>
                        标题
                    </td>
                    <td>
                        <input type="text" class="txt_ItmeTitle_add" runat="server" id="txt_ItmeTitle_add" />
                    </td>
                </tr>
                <tr>
                    <td>
                        首页显示
                    </td>
                    <td>
                        <input type="radio" id="Rd_add_yes" name="Rd_itemShow_add" runat="server" value="true" /><label>显示</label>
                        <input id="Rd_add_no" type="radio" name="Rd_itemShow_add" runat="server" value="true" /><label>不显示</label>
                    </td>
                </tr>
            </table>
        </div>
        <div class="Con_foot">
            <asp:Button ID="Button1" runat="server" OnClick="AddItem" OnClientClick="return check();" Text="确认添加" />
            <input type="button" value="取消" onclick="hideDiv('Add_item')" />
        </div>
    </div>
     <div class="Con_List" id="edit_item">
        <div class="Con_top">
            <div class="Con_close" onclick="hideDiv('edit_item')">X</div>
        </div>
        <div class="Con_middle">
            <table>
                <tr>
                    <td>
                        标题
                    </td>
                    <td>
                        <input type="text" class="txt_ItmeTitle_edit" runat="server" id="txt_ItmeTitle_edit" />
                    </td>
                </tr>
                <tr>
                    <td>
                        首页显示
                    </td>
                    <td>
                        <input type="radio" id="Rd_edit_yes" name="Rd_itemShow_edit" runat="server" value="true" /><label>显示</label>
                        <input id="Rd_edit_no" type="radio" name="Rd_itemShow_add" runat="server" value="true" /><label>不显示</label>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td>
                        <input type="text" id="itemId" runat="server" style="display:none;" />
                    </td>
                </tr>
            </table>
        </div>
        <div class="Con_foot">
            <asp:Button ID="Button2" runat="server" OnClick="EditItem" OnClientClick="return check();" Text="确认修改" />
            <input type="button" value="取消" onclick="hideDiv('edit_item')" />
        </div>
    </div>
    </form>
</body>
</html>
